﻿using DAL;
using Model;
using System;
using System.Collections.Generic;
using System.Data;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace BLL
{
    public class roleBLL
    {
        public DataTable FY(string tableName, int pageIndex)
        {
            return new roleDAL().FY(tableName, pageIndex);
        }

        public DataTable Select(string TableName)
        {
            return new AdminDAL().Select(TableName);
        }

        public bool Del(string tableName, int id)
        {
            return new roleDAL().Del(tableName, id);
        }

        public object SelectNo(string tableName, string mz)
        {
            return new roleDAL().SelectNo(tableName, mz);
        }

        public roleModel GetModelByID(string tableName, int pid)
        {
            return new roleDAL().GetModelByID(tableName, pid);
        }

        public bool Gai(roleModel model, int pid)
        {
            return new roleDAL().Gai(model, pid);
        }

        public bool Add(roleModel model)
        {
            return new roleDAL().Add(model);
        }

        public DataTable LJ(string v1, string v2)
        {
            return new roleDAL().LJ(v1,v2);
        }
        
        

        public DataTable SelectLJR(string tableOne, string tableTwo, string mz)
        {
            return new roleDAL().SelectLJR(tableOne, tableTwo, mz);
        }

        public DataTable S(string tableOne, string tableTow, int pageIndex)
        {
            return new roleDAL().S(tableOne, tableTow, pageIndex);
        }
    }
}
